cmake_minimum_required(VERSION 3.5)
set(projectName BaseComponentPlugin)
project(${projectName} LANGUAGES CXX C VERSION 1.0.0)

set(src_code
    src/BaseComponentPlugin.cpp
    src/ComponentBoat.cpp
    src/ComponentBodyBase.cpp
    src/ComponentLoot.cpp
    src/ComponentVitalStatsBase.cpp
    src/ComponentHumanModelBase.cpp
    src/ComponentLocomotionBase.cpp
    src/ComponentAutoJump.cpp
)

include_directories(include/BaseComponentPlugin)

add_library(${projectName} SHARED ${src_code})
target_link_libraries(${projectName} PUBLIC PocketSurvival)

set_target_properties(${projectName} PROPERTIES INSTALL_RPATH "$ORIGIN")

target_include_directories(${projectName} PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>" "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")


